﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml;

namespace Enring.Workflow.Models
{
    /// <summary>
    /// 
    /// </summary>
    public class WorkflowProcess
    {
        private XmlNode node;

        /// <summary>
        /// Initialize workflow process from xpdl xml.
        /// </summary>
        /// <param name="xpdl">XPDL XML node</param>
        public WorkflowProcess(XmlNode xpdl)
        {
            node = xpdl;            
        }

        /// <summary>
        /// 
        /// </summary>
        public XmlNode Xml
        {
            get
            {
                return node;
            }
        }


        /// <summary>
        /// 
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public Activity GetActivity(string id)
        {
            return null;
        }

        public Activity[] GetNextActivities(Activity currentActivity)
        {
            return null;
        }

        public Activity GetFirstActivity()
        {
            return null;
        }

        public Activity GetLastActivity()
        {
            return null;
        }


        public Transation GetTransation(string id)
        {
            return null;
        }
    }
}
